﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;

namespace StreetlightGames.XnaEngine
{
    public class CompositeModelObject : DrawableGameComponent
    {        
        /// <summary>Gets the Objects value</summary>
        public List<ModelObject> Objects
        {
            get { return _objects; }
        }
        private List<ModelObject> _objects = new List<ModelObject>();

        public CompositeModelObject(Game game)
            : base(game)
        {
        }

        public override void Draw(GameTime gameTime)
        {
            foreach (ModelObject modelObject in Objects)
            {
                modelObject.Draw(gameTime);
            }
            base.Draw(gameTime);
        }
    }
}
